/*
 * @Descripttion:
 * @Version: 1.0
 * @Author: undead
 * @Date: 2022-01-12 15:17:50
 * @LastEditors: undead
 * @LastEditTime: 2022-01-13 17:50:05
 */
const parser = require("@babel/parser");
const ast_decrypt = require("../ast");

function main(jscode) {
  var ast_parse = parser.parse(jscode);
  console.log(`共有节点：${ast_parse.program.body.length}`);
  return new ast_decrypt(ast_parse);
}
module.exports = main;
